<%-- 
    Document   : listPlans
    Created on : Mar 25, 2012, 6:36:41 PM
    Author     : Waseem
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="./css/main.css" type="text/css"/>
        <style>
            body {
                background-color : white;
            }
        </style>
    </head>
    <body>
        <c:forEach items="${plans.listPlans}" var="plan" varStatus="loopCount">
            <div class="plansview_list">
                ${plan.name}
                <a href="
                   <c:url value="Plans">  
                       <c:param name="action" value="push"/>
                       <c:param name="planId" value="${plan.id}"/>
                   </c:url>">
                    Push
                </a>
                &nbsp;
                <a href="
                   <c:url value="Plans">  
                       <c:param name="action" value="edit"/>
                       <c:param name="planId" value="${plan.id}"/>
                   </c:url>">
                    Edit
                </a>
            </div>
        </c:forEach>
        <!--just a sample of what this stuff will look like!!-->
        <div class="plansview_list">
            +This is an awesome plan
            <a href="#">Join</a>
            &nbsp;
            <a href="#">Edit</a>
        </div>
    </body>
</html>
